' spinning cube

Import axe3d.minib3d

graphics3d 800,600

'cube=createcube()

cube=LoadSprite("b-max.png")

cube2=LoadSprite("b-max.png",0,cube)
moveentity cube2,0,2,0
scalesprite cube2,.5,.5

cam=createcamera()
moveentity cam,0,0,-5

light=createlight()
moveentity light,-25,25,-50

Local rot

While Not KeyHit(KEY_ESCAPE)
	rotatesprite cube,rot
	turnentity cube,-1,0,0
	rot=rot+1
	updateworld
	renderworld
	Flip
Wend
